package cate.common.table.activity.specall.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;

public class SpeCallGroupRow extends ERow implements RWItem {
    public String rewardStr;

    public int group;

    public double weight;

    public boolean rare;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("ID");
        this.rewardStr = xrw.getString("道具");
        this.group = xrw.getInteger("分组");
        this.weight = xrw.getDouble("权重",0.0);
        this.rare = xrw.getBoolean("是否稀有", false);
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
